﻿using UnityEngine;

public class CounterSkill:CloneBaseSkill
{
    public CounterSkill(string skillName) : base(skillName)
    {
    }
    
    public override CloneController Clone(string prefab,Vector2 pos,int faceDir)
    {
        
        //使用协程
        var  cloneController = base.Clone(prefab,pos,faceDir);
        var  controller =(cloneController  as PlayerCloneController);
        controller.SetCanHitBack(false);
        controller.PlayAttack();
        return cloneController;
    }
    
}